<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>请假任务办理</title>
</head>
<script type="text/javascript">
	$(function() {
		$("#leaveBillRemark").val($("#remarkValue").val());
	});
</script>
<body>
	<%@include file="../common/top.jsp"%>
	<div id="content" style="width: 90%;">
		<div id="dealForm">
			<table class="table">
				<caption style="background-color: #428BCA;">
					<span class="label pull-left"
						style="font-family: white; font-size: 16px"><span class="local"
						data-local="flow_handle_task_title">任务明细：</span></span>
				</caption>
				<tr>
					<td>

						<form class="form-horizontal" role="form" id="addOrUpdateForm"
							action="http://localhost:8888/simple_activiti/workflow/submit_task.do">
							<input type="hidden" name="id" value="${leaveBill.id }">
							<input type="hidden" name="taskId" value="${taskId }">
							<div class="form-group">
								<label for="firstname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_days">请假天数:</span></label>
								<div class="col-sm-10">
									<input type="text" class="form-control" name="days"
										id="leaveBillDays" disabled="disabled"
										value="${leaveBill.days }">
								</div>
							</div>
							<div class="form-group">
								<label for="lastname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_reason">请假原因:</span></label>
								<div class="col-sm-10">
									<input type="text" class="form-control" name="content"
										id="leaveBillContent" disabled="disabled"
										value="${leaveBill.content }">
								</div>
							</div>
							<div class="form-group">
								<label for="lastname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_desc">备注:</span></label>
								<div class="col-sm-10">
									<input type="hidden" value="${leaveBill.remark }"
										id="remarkValue">
									<textarea class="form-control" rows="3" name="remark"
										id="leaveBillRemark" disabled="disabled" style="resize: none"></textarea>
								</div>

							</div>
							<div class="form-group">
								<label for="lastname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_remark">批注:</span></label>
								<div class="col-sm-10">
									<textarea class="form-control" rows="3" name="comment"
										id="levaveBillRemark" style="resize: none"></textarea>
								</div>
							</div>
							<button type="submit" class="btn btn-primary pull-right"><span class="local"
						data-local="flow_handle_task_btn_ok">确认</span></button>
						</form>
					</td>
				</tr>
			</table>
		</div>


		<div id="dealTable" style="margin-top: 10%;">
			<table class="table table-hover">
				<caption style="background-color: #428BCA;">
					<span class="label pull-left"
						style="font-family: white; font-size: 16px"><span class="local"
						data-local="flow_handle_task_his_title">显示请假申请的批注信息：</span></span>
				</caption>
				<thead>
					<tr>
						<td><span class="local"
						data-local="flow_handle_task_his_time">时间</span></td>
						<td><span class="local"
						data-local="flow_handle_task_his_person">批注人</span></td>
						<td><span class="local"
						data-local="flow_handle_task_his_remark">批注信息</span></td>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${commentList }" var="comment">
						<tr>
							<td><fmt:formatDate value="${comment.time }"
									pattern="yyyy-MM-dd HH:mm:ss" /></td>
							<td>${comment.userId }</td>
							<td>${comment.fullMessage  }</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>

	</div>

</body>
</html>